layui.define([ 'form','layer','memberApi' ], function(exports) {
    console.log("pwd");

    var view = {};

    var form = layui.form;
    var $ = layui.$;
    var memberApi = layui.memberApi;

    form.on('submit(memberModifyPwdForm)', function(){
        console.log("changePwd");
        var f = this;
        memberApi.changePassword($(f),function(data) {
          Common.info("密码更新成功");
          f.reset();
        });
        return false;
    });
	exports('pwd', view);
});